package com.gzz.orchid.context.application.rbac.pojo;

import com.gzz.orchid.context.domain.rbac.entity.Permission;
import com.gzz.orchid.context.infrastructure.definition.Status;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author higmd
 */
@Data
public class RoleVo {

    private Long id;
    /**
     * 角色编码 code
     */
    private String code;
    /**
     * 角色名称 name
     */
    private String name;
    /**
     * 角色描述 description
     */
    private String description;
    /**
     * 角色状态 status
     */
    private Status status;
    /**
     * 角色权限
     */
    private List<Permission> permissions;
    private LocalDateTime createdOn;
    private String createdBy;
    private LocalDateTime updatedOn;
    private String updatedBy;
}
